﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000947 RID: 2375
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ICOBJGOCLFL : IMessage<ICOBJGOCLFL>, IMessage, IEquatable<ICOBJGOCLFL>, IDeepCloneable<ICOBJGOCLFL>, IBufferMessage
	{
		// Token: 0x17001E1C RID: 7708
		// (get) Token: 0x06006A97 RID: 27287 RVA: 0x0011E640 File Offset: 0x0011C840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ICOBJGOCLFL> Parser
		{
			get
			{
				return ICOBJGOCLFL._parser;
			}
		}

		// Token: 0x17001E1D RID: 7709
		// (get) Token: 0x06006A98 RID: 27288 RVA: 0x0011E647 File Offset: 0x0011C847
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ICOBJGOCLFLReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001E1E RID: 7710
		// (get) Token: 0x06006A99 RID: 27289 RVA: 0x0011E659 File Offset: 0x0011C859
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ICOBJGOCLFL.Descriptor;
			}
		}

		// Token: 0x06006A9A RID: 27290 RVA: 0x0011E660 File Offset: 0x0011C860
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ICOBJGOCLFL()
		{
		}

		// Token: 0x06006A9B RID: 27291 RVA: 0x0011E668 File Offset: 0x0011C868
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ICOBJGOCLFL(ICOBJGOCLFL other) : this()
		{
			this.itemCount_ = other.itemCount_;
			this.itemId_ = other.itemId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006A9C RID: 27292 RVA: 0x0011E699 File Offset: 0x0011C899
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ICOBJGOCLFL Clone()
		{
			return new ICOBJGOCLFL(this);
		}

		// Token: 0x17001E1F RID: 7711
		// (get) Token: 0x06006A9D RID: 27293 RVA: 0x0011E6A1 File Offset: 0x0011C8A1
		// (set) Token: 0x06006A9E RID: 27294 RVA: 0x0011E6A9 File Offset: 0x0011C8A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemCount
		{
			get
			{
				return this.itemCount_;
			}
			set
			{
				this.itemCount_ = value;
			}
		}

		// Token: 0x17001E20 RID: 7712
		// (get) Token: 0x06006A9F RID: 27295 RVA: 0x0011E6B2 File Offset: 0x0011C8B2
		// (set) Token: 0x06006AA0 RID: 27296 RVA: 0x0011E6BA File Offset: 0x0011C8BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x06006AA1 RID: 27297 RVA: 0x0011E6C3 File Offset: 0x0011C8C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ICOBJGOCLFL);
		}

		// Token: 0x06006AA2 RID: 27298 RVA: 0x0011E6D1 File Offset: 0x0011C8D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ICOBJGOCLFL other)
		{
			return other != null && (other == this || (this.ItemCount == other.ItemCount && this.ItemId == other.ItemId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006AA3 RID: 27299 RVA: 0x0011E710 File Offset: 0x0011C910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ItemCount != 0U)
			{
				num ^= this.ItemCount.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006AA4 RID: 27300 RVA: 0x0011E768 File Offset: 0x0011C968
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006AA5 RID: 27301 RVA: 0x0011E770 File Offset: 0x0011C970
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006AA6 RID: 27302 RVA: 0x0011E77C File Offset: 0x0011C97C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemCount != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.ItemCount);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006AA7 RID: 27303 RVA: 0x0011E7D8 File Offset: 0x0011C9D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ItemCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemCount);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006AA8 RID: 27304 RVA: 0x0011E830 File Offset: 0x0011CA30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ICOBJGOCLFL other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ItemCount != 0U)
			{
				this.ItemCount = other.ItemCount;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006AA9 RID: 27305 RVA: 0x0011E880 File Offset: 0x0011CA80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006AAA RID: 27306 RVA: 0x0011E88C File Offset: 0x0011CA8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ItemId = input.ReadUInt32();
					}
				}
				else
				{
					this.ItemCount = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040028B9 RID: 10425
		private static readonly MessageParser<ICOBJGOCLFL> _parser = new MessageParser<ICOBJGOCLFL>(() => new ICOBJGOCLFL());

		// Token: 0x040028BA RID: 10426
		private UnknownFieldSet _unknownFields;

		// Token: 0x040028BB RID: 10427
		public const int ItemCountFieldNumber = 2;

		// Token: 0x040028BC RID: 10428
		private uint itemCount_;

		// Token: 0x040028BD RID: 10429
		public const int ItemIdFieldNumber = 13;

		// Token: 0x040028BE RID: 10430
		private uint itemId_;
	}
}
